/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.EnrollmentFacade;
import org.ipti.br.tag.entity.Enrollment;
import java.io.Serializable;
import java.util.List;
import javax.inject.Inject;
import javax.ejb.Stateless;

/**
 *
 * @author root
 */
@Stateless
public class EnrollmentBO implements Serializable {

    @Inject
    private EnrollmentFacade enrollmentDAO;

    public EnrollmentFacade getEnrollmentDAO() {
        return enrollmentDAO;
    }

    public void create(Enrollment enrollment) {
        getEnrollmentDAO().create(enrollment);
    }

    public void edit(Enrollment enrollment) {
        getEnrollmentDAO().edit(enrollment);
    }

    public void remove(Enrollment enrollment) {
        getEnrollmentDAO().remove(enrollment);
    }

    public Enrollment find(Object id) {
        return getEnrollmentDAO().find(id);
    }

    public List<Enrollment> findAll() {
        return getEnrollmentDAO().findAll();
    }

    public void editForSynchronization(Enrollment enrollment) {
        getEnrollmentDAO().editForSynchronization(enrollment);
    }

    public Enrollment findEnrollmentPerPersonage(Long personageID) {
        return getEnrollmentDAO().findEnrollmentPerPersonage(personageID);
    }
}
